/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package credit.paysystem;

import Modelo.Membresia;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import mx.its.LnLocal.MembresiaLnLocal;
import mx.its.ln.MembresiaLN;

/**
 * FXML Controller class
 *
 * @author Grnmnd
 */
public class AsignarMembresiaController implements Initializable {

    /**
     * Initializes the controller class.
     */
    @FXML
    ComboBox membresia;
    @FXML
    ComboBox dia;
    @FXML
    ComboBox mes;
    @FXML
    ComboBox anno;
    @FXML
    Label costo;   
    @FXML
    TextField usuario;
    @FXML
    Button asignar;
    
    @Override
    public void initialize(URL url, ResourceBundle rb) {
        MembresiaLnLocal mll = new MembresiaLN();
        ObservableList<Membresia> k = FXCollections.observableArrayList(mll.getTodo());
        membresia.setItems(k);
        
    }    
}
